export default {
	namespaced: true,
	state: {
		userInfo: JSON.parse(uni.getStorageSync('userInfo') || ' {}')
	},
	mutations: {
		setUserInfo(state, userInfo) {
			state.userInfo = userInfo
			this.commit('my_Info/saveUserInfo')
		},
		saveUserInfo(state) {
			uni.setStorageSync('userInfo', JSON.stringify(state.userInfo))
		}
	},
	actions: {},
	getters: {}
}
